/*
 * @Author: linjie linjie@gysk.com.cn
 * @Date: 2023-07-06 11:37:18
 * @LastEditors: linjie linjie@gysk.com.cn
 * @LastEditTime: 2024-05-09 15:20:31
 * @FilePath: \esale-pc-frontend\src\views\login\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import requests from '@/api/request'
// const SERVER_URL = 'user'
const SERVER_URL = ''
export default {
  // 登录
  postLoginData (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/user/user/login`,
      method: 'post',
      data
    })
  },
  // 校验原始密码
  postCheckoutPassword (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/user/user/check/password`,
      method: 'post',
      data
    })
  },
  // 修改密码
  postChangePassword (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/user/user/change/password`,
      method: 'post',
      data
    })
  }
}
